package com.system.service.impl;

import com.system.mapper.OrganizationMapper;
import com.system.pojo.Organization;
import com.system.service.OrganizationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("organizationService")
public class OrganizationServiceImpl implements OrganizationService {
    @Autowired
    private OrganizationMapper organizationMapper;
    @Override
    public List<Organization> select(Organization organization) {
        return organizationMapper.select(organization);
    }

    @Override
    public int insert(Organization organization) {
        return organizationMapper.insert(organization);
    }

    @Override
    public int update(Organization organization) {
        return organizationMapper.update(organization);
    }

    @Override
    public int delete(String id) {
        return organizationMapper.delete(id);
    }

    public OrganizationMapper getOrganizationMapper() {
        return organizationMapper;
    }

    public void setOrganizationMapper(OrganizationMapper organizationMapper) {
        this.organizationMapper = organizationMapper;
    }
}
